<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: WLog::ILogProcess类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>名字空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWLog.html">WLog</a>::<a class="el" href="classWLog_1_1ILogProcess.html">ILogProcess</a>
  </div>
</div>
<div class="contents">
<h1>WLog::ILogProcess类参考</h1><!-- doxytag: class="WLog::ILogProcess" -->Interface for process the logs.  
<a href="#_details">更多...</a>
<p>
<code>#include &lt;<a class="el" href="ILogProcess_8h-source.html">ILogProcess.h</a>&gt;</code>
<p>
<div class="dynheader">
WLog::ILogProcess合作图：</div>
<div class="dynsection">
<p><center><img src="classWLog_1_1ILogProcess__coll__graph.png" border="0" usemap="#WLog_1_1ILogProcess__coll__map" alt="Collaboration graph"></center>
<map name="WLog_1_1ILogProcess__coll__map">
<area shape="rect" id="node2" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level." alt="" coords="5,265,147,442"><area shape="rect" id="node4" href="classWLog_1_1ILevel.html" title="Define Interface for Log Level." alt="" coords="171,169,325,538"></map>
<center><font size="2">[<a href="graph_legend.html">图例</a>]</font></center></div>

<p>
<a href="classWLog_1_1ILogProcess-members.html">所有成员的列表。</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>公有成员</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#0dca4c62ee5c6ccda16212992b26296f">ILogProcess</a> (<a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter=0, int iOutLevel=W_LEVEL_FLOOR)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">以一个输出对象IOuter来初始化类.  <a href="#0dca4c62ee5c6ccda16212992b26296f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#a7593f0f3235ea4e5e9ce22fbef650a7">~ILogProcess</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#acc84762d50a7a0ec71453b1534094a4">addLevel</a> (<a class="el" href="classWLog_1_1ILevel.html">ILevel</a> *pLevel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">向类里面添加不同级别的 <a class="el" href="classWLog_1_1ILevel.html" title="Define Interface for Log Level.">ILevel</a>.  <a href="#acc84762d50a7a0ec71453b1534094a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#035c1a508ac1492b9344a510e317f668">setOutLevel</a> (int iOutLevel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置输出级别.  <a href="#035c1a508ac1492b9344a510e317f668"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#fbb6db887defa09683f91b7059f6f703">getOutLevel</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">获取类的输出级别.  <a href="#fbb6db887defa09683f91b7059f6f703"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#ce3c7d8721cd6e40d2e4ae22504f5df5">setOuter</a> (<a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *pOuter)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置类的输出对象IOuter.  <a href="#ce3c7d8721cd6e40d2e4ae22504f5df5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#51eb815cb699c63c370bee4788a285b0">getOuter</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">获取类的输出对象IOuter.  <a href="#51eb815cb699c63c370bee4788a285b0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#81da7a7de8f4eece0f19a1f3fe3becbf">pushRecord</a> (<a class="el" href="classWLog_1_1Record.html">Record</a> record)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">添加一条记录  <a href="#81da7a7de8f4eece0f19a1f3fe3becbf"></a><br></td></tr>
<tr><td colspan="2"><br><h2>保护属性</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWLog_1_1ILevel.html">ILevel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWLog_1_1ILogProcess.html#04d7cf576224bbe3179a12d001e35bbb">m_pLevels</a> [W_LEVEL_CEIL]</td></tr>

</table>
<hr><a name="_details"></a><h2>详细描述</h2>
Interface for process the logs. 
<p>
处理逻辑定义，将IOuter,ILevel与Record等联系在一起. 
<p>在文件<a class="el" href="ILogProcess_8h-source.html">ILogProcess.h</a>第<a class="el" href="ILogProcess_8h-source.html#l00015">15</a>行定义。</p>
<hr><h2>构造及析构函数文档</h2>
<a class="anchor" name="0dca4c62ee5c6ccda16212992b26296f"></a><!-- doxytag: member="WLog::ILogProcess::ILogProcess" ref="0dca4c62ee5c6ccda16212992b26296f" args="(IOuter *pOuter=0, int iOutLevel=W_LEVEL_FLOOR)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WLog::ILogProcess::ILogProcess           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iOutLevel</em> = <code>W_LEVEL_FLOOR</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
以一个输出对象IOuter来初始化类. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pOuter</em>&nbsp;</td><td>输出对象IOuter指针，默认为NULL </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>iOutLevel</em>&nbsp;</td><td>输出级别，默认为所有都输出 </td></tr>
  </table>
</dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00010">10</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="a7593f0f3235ea4e5e9ce22fbef650a7"></a><!-- doxytag: member="WLog::ILogProcess::~ILogProcess" ref="a7593f0f3235ea4e5e9ce22fbef650a7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WLog::ILogProcess::~ILogProcess           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00016">16</a>行定义。</p>

</div>
</div><p>
<hr><h2>成员函数文档</h2>
<a class="anchor" name="acc84762d50a7a0ec71453b1534094a4"></a><!-- doxytag: member="WLog::ILogProcess::addLevel" ref="acc84762d50a7a0ec71453b1534094a4" args="(ILevel *pLevel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::ILogProcess::addLevel           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWLog_1_1ILevel.html">ILevel</a> *&nbsp;</td>
          <td class="paramname"> <em>pLevel</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
向类里面添加不同级别的 <a class="el" href="classWLog_1_1ILevel.html" title="Define Interface for Log Level.">ILevel</a>. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pLevel</em>&nbsp;</td><td>要加入的Log级别 </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>成功则返回true </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00031">31</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="035c1a508ac1492b9344a510e317f668"></a><!-- doxytag: member="WLog::ILogProcess::setOutLevel" ref="035c1a508ac1492b9344a510e317f668" args="(int iOutLevel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WLog::ILogProcess::setOutLevel           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iOutLevel</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置输出级别. 
<p>
即 &gt;= iOutLevel级别的数据都会输出。<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>iOutLevel</em>&nbsp;</td><td>要设置的输出级别 </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>参见:</b></dt><dd><a class="el" href="classWLog_1_1ILogProcess.html#fbb6db887defa09683f91b7059f6f703" title="获取类的输出级别.">getOutLevel()</a> </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00042">42</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="fbb6db887defa09683f91b7059f6f703"></a><!-- doxytag: member="WLog::ILogProcess::getOutLevel" ref="fbb6db887defa09683f91b7059f6f703" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int WLog::ILogProcess::getOutLevel           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
获取类的输出级别. 
<p>
<dl class="return" compact><dt><b>返回:</b></dt><dd>返回当前的输出级别 </dd></dl>
<dl class="see" compact><dt><b>参见:</b></dt><dd><a class="el" href="classWLog_1_1ILogProcess.html#035c1a508ac1492b9344a510e317f668" title="设置输出级别.">setOutLevel(int)</a> </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00047">47</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="ce3c7d8721cd6e40d2e4ae22504f5df5"></a><!-- doxytag: member="WLog::ILogProcess::setOuter" ref="ce3c7d8721cd6e40d2e4ae22504f5df5" args="(IOuter *pOuter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> * WLog::ILogProcess::setOuter           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> *&nbsp;</td>
          <td class="paramname"> <em>pOuter</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
设置类的输出对象IOuter. 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pOuter</em>&nbsp;</td><td>要设置的输出对象 </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>返回之前的IOuter指针，如果之前没有则返回NULL </dd></dl>
<dl class="see" compact><dt><b>参见:</b></dt><dd><a class="el" href="classWLog_1_1ILogProcess.html#51eb815cb699c63c370bee4788a285b0" title="获取类的输出对象IOuter.">getOuter()</a> </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00052">52</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="51eb815cb699c63c370bee4788a285b0"></a><!-- doxytag: member="WLog::ILogProcess::getOuter" ref="51eb815cb699c63c370bee4788a285b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1IOuter.html">IOuter</a> * WLog::ILogProcess::getOuter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
获取类的输出对象IOuter. 
<p>
<dl class="return" compact><dt><b>返回:</b></dt><dd>返回当前的IOuter指针，如果没有则返回NULL </dd></dl>
<dl class="see" compact><dt><b>参见:</b></dt><dd><a class="el" href="classWLog_1_1ILogProcess.html#ce3c7d8721cd6e40d2e4ae22504f5df5" title="设置类的输出对象IOuter.">setOuter(IOuter*)</a> </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00061">61</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="81da7a7de8f4eece0f19a1f3fe3becbf"></a><!-- doxytag: member="WLog::ILogProcess::pushRecord" ref="81da7a7de8f4eece0f19a1f3fe3becbf" args="(Record record)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool WLog::ILogProcess::pushRecord           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWLog_1_1Record.html">Record</a>&nbsp;</td>
          <td class="paramname"> <em>record</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
添加一条记录 
<p>
<dl compact><dt><b>参数:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>record</em>&nbsp;</td><td>记录 </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>返回:</b></dt><dd>添加成功返回true </dd></dl>

<p>在文件<a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a>第<a class="el" href="ILogProcess_8cpp-source.html#l00084">84</a>行定义。</p>

</div>
</div><p>
<hr><h2>成员数据文档</h2>
<a class="anchor" name="04d7cf576224bbe3179a12d001e35bbb"></a><!-- doxytag: member="WLog::ILogProcess::m_pLevels" ref="04d7cf576224bbe3179a12d001e35bbb" args="[W_LEVEL_CEIL]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWLog_1_1ILevel.html">ILevel</a>* <a class="el" href="classWLog_1_1ILogProcess.html#04d7cf576224bbe3179a12d001e35bbb">WLog::ILogProcess::m_pLevels</a>[W_LEVEL_CEIL]<code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="ILogProcess_8h-source.html">ILogProcess.h</a>第<a class="el" href="ILogProcess_8h-source.html#l00082">82</a>行定义。</p>

</div>
</div><p>
<hr>该类的文档由以下文件生成：<ul>
<li><a class="el" href="ILogProcess_8h-source.html">ILogProcess.h</a><li><a class="el" href="ILogProcess_8cpp-source.html">ILogProcess.cpp</a></ul>
</div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:09:01 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
